package com.zfei.gfb.request;

import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author fgh
 */
public class GfbGetRequest {

    @ApiModelProperty(value = "id", required = true)
    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void checkGetNull() {
        if (id == null) {
            throw new StatusException(Status.INVALID_ARGUMENT);
        }
    }
}

